
function arrows(e)
{
var keynum;
var nextPage;
if(window.event) // IE
  {
  keynum = e.keyCode;
  }
else if(e.which) // Netscape/Firefox/Opera
  {
  keynum = e.which;
  }
if (keynum == 37) {
nextPage = document.getElementById("previous");
} else if (keynum == 39) {
nextPage = document.getElementById("next");
} else if (keynum == 38) {
nextPage = document.getElementById("home");
}
if (nextPage.href) {
var t=setTimeout("window.close()",500);
window.open(nextPage.href);
}
}